/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Telas;

import java.awt.Toolkit;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Thalyson
 */
public class Tela_Sair extends javax.swing.JFrame {

    /**
     * Creates new form TelaSair
     */
    public Tela_Sair() {
        initComponents();        
        setSize(300, 200);
        setLocationRelativeTo(null);
        Icon();
    }
    
//<----------------------------------------------------------------------------------------------------------------------------------------->    

    private void Icon(){
    
        setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("assistec_icon.png")));
        
    }    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jb_nao = new javax.swing.JButton();
        jb_sim = new javax.swing.JButton();
        jl_sair = new javax.swing.JLabel();
        jl_footer = new javax.swing.JLabel();
        js_footer = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("AssisTec - Sair");
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jb_nao.setBackground(new java.awt.Color(255, 255, 255));
        jb_nao.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jb_nao.setForeground(new java.awt.Color(78, 78, 78));
        jb_nao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_fechar.png"))); // NOI18N
        jb_nao.setText("NÃO");
        jb_nao.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jb_nao.setBorderPainted(false);
        jb_nao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_naoActionPerformed(evt);
            }
        });
        getContentPane().add(jb_nao, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 70, 90, 40));

        jb_sim.setBackground(new java.awt.Color(255, 255, 255));
        jb_sim.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jb_sim.setForeground(new java.awt.Color(78, 78, 78));
        jb_sim.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_check.png"))); // NOI18N
        jb_sim.setText("SIM");
        jb_sim.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jb_sim.setBorderPainted(false);
        jb_sim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_simActionPerformed(evt);
            }
        });
        getContentPane().add(jb_sim, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 70, 90, 40));

        jl_sair.setBackground(new java.awt.Color(255, 255, 255));
        jl_sair.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jl_sair.setForeground(new java.awt.Color(255, 255, 255));
        jl_sair.setText("DESEJA FECHAR O PROGRAMA ?");
        getContentPane().add(jl_sair, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 20, 230, -1));

        jl_footer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jl_footer.setForeground(new java.awt.Color(255, 255, 255));
        jl_footer.setText("AssisTec");
        getContentPane().add(jl_footer, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, -1, -1));

        js_footer.setForeground(new java.awt.Color(255, 255, 255));
        getContentPane().add(js_footer, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 140, 230, 10));

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_fundo.png"))); // NOI18N
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 300, 200));

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void jb_simActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_simActionPerformed
                System.exit(0);
    }//GEN-LAST:event_jb_simActionPerformed

    private void jb_naoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_naoActionPerformed
                dispose();
    }//GEN-LAST:event_jb_naoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tela_Sair.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tela_Sair.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tela_Sair.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tela_Sair.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Tela_Sair().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel2;
    private javax.swing.JButton jb_nao;
    private javax.swing.JButton jb_sim;
    private javax.swing.JLabel jl_footer;
    private javax.swing.JLabel jl_sair;
    private javax.swing.JSeparator js_footer;
    // End of variables declaration//GEN-END:variables
}
